#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;

int main()
{
	int n, m, k;
	cin >> n >> m >> k;
	int A[3][3] = { 0 };
	int B[3][3] = { 0 };
	int C[3][3] = { 0 };
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < m; j++) {
			cin >> A[i][j];
		}
	}
	for (int i = 0; i < m; i++) {
		for (int j = 0; j < k; j++) {
			cin >> B[i][j];
		}
	}
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < k; j++) {
			for (int q = 0; q < m; q++) {
				C[i][j] += A[i][q] * B[q][j];
			}
		}
	}
    
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < k; j++) {
			cout << C[i][j]<<' ';
		}
		cout << endl;
	}
	return 0;
}